package com.bt7274.pojo.vo;

import lombok.Data;
import java.util.List;

@Data
public class PageResult<T> {
    private Long total;      // 总记录数
    private Integer current; // 当前页码
    private Integer size;    // 每页大小
    private List<T> records; // 数据列表

    // 构造函数
    public PageResult() {}

    public PageResult(List<T> records, Long total, Integer current, Integer size) {
        this.records = records;
        this.total = total;
        this.current = current;
        this.size = size;
    }
}